<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <title>JS实现3D旋转地球</title>
    <style>
        body {
            margin: 0;
            overflow: hidden;
            background: #000;
        }
        #container {
            width: 100vw;
            height: 100vh;
            display: flex;
            justify-content: center;
            align-items: center;
            perspective: 1000px;
        }
        #earth {
            width: 200px;
            height: 200px;
            position: relative;
            transform-style: preserve-3d;
        }
        #earth img {
            width: 100%;
            height: 100%;
            border-radius: 50%;
        }
        .satellite {
            position: absolute;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            transform-style: preserve-3d;
            transition: transform 0.1s linear;
        }
        .satellite img {
            width: 100%;
            height: 100%;
            border-radius: 50%;
        }
    </style>
</head>
<body>
    <div id="container">
        <div id="earth">
            <img src="earth.jpg" alt="Earth">
            <!-- 卫星将通过JS动态添加 -->
        </div>
    </div>
    <script src="earth.js"></script>
</body>
</html>